<div class="col-sm-12">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>修改菜单</h5>

        </div>
        <div class="ibox-content">
            <form method="post" action="save" class="form-horizontal">
                <div class="form-group">
                    <label class="col-sm-3 control-label">菜单名称：</label>
                    <div class="col-sm-9">
                        <input required type="text" name="name" class="form-control" placeholder=""> <span class="help-block m-b-none">建议不超过六个字</span>
                    </div>
                </div>
                <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">是否顶级栏目：</label>-->
                <!--<div class="col-sm-9">-->
                <!--<label class="radio-inline">-->
                <!--<input required type="radio" checked="" value="true" id="optionsRadios1" name="isFirst">是</label>-->
                <!--<label class="radio-inline">-->
                <!--<input required type="radio" value="false" id="optionsRadios2" name="isFirst">否</label>-->
                <!--</div>-->
                <!--</div>-->
                <div class="form-group">
                    <label class="col-sm-3 control-label">父级栏目：</label>
                    <div class="col-sm-9">

                        <select  class="form-control" name="parent_id" id="parent_id" >
                            <option value="0">顶级菜单</option>
                            {volist name="menuList" id="id"}
                            <option value="{$id.id}">{$id.name}</option>
                            {/volist}

                        </select>

                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">模块：</label>
                    <div class="col-sm-9">
                        <input type="text" name="m_name" value="" class="form-control" placeholder="admin"> <span class="help-block m-b-none">小写即可，后台管理默认为admin。</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">控制器：</label>
                    <div class="col-sm-9">
                        <input type="text"  name="c_name" class="form-control" placeholder="index"> <span class="help-block m-b-none">小写即可</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">方法：</label>
                    <div class="col-sm-9">
                        <input type="text" name="a_name" class="form-control" placeholder="index"> <span class="help-block m-b-none">小写即可</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">筛选条件：</label>
                    <div class="col-sm-9">
                        <input type="text" name="condition" class="form-control" placeholder=""> <span class="help-block m-b-none">运营人员请勿用此选项</span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">fontawesome图标：</label>
                    <div class="col-sm-9">
                        <input type="text" name="icon" class="form-control" placeholder="index">
                        <span class="help-block m-b-none"><a target="_blank" href="http://fontawesome.io/icons/">参考</a></span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button class="btn btn-primary btn-sm" type="submit">保存内容</button>
                        <a class="btn btn-white" href="/admin/activity/index">取消</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>

    $(function(){
        $('input[type=radio][name=isFirst]').change(function() {
            if (this.value) {
                // alert("Allot Thai Gayo Bhai");
                // $('#parent_id').attr("disabled",false);
                document.getElementById('parent_id').disabled = false
            }
            else{
                document.getElementById('parent_id').disabled = true
                // $('#parent_id').attr("disabled",true);
                // alert("Transfer Thai Gayo");
            }
        });
    })
</script>